package com.bd.scm.module.uploadFile.service;

import com.bd.scm.domain.models.enclosure.BdEnclosure;
import com.bd.scm.module.enums.UploadTypeEnum;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UploadFileService {
    /**
     * 保存文件到临时目录.
     *
     * @param file
     * @return
     */
    String saveTempFile(MultipartFile file);

    /**
     * 保存到有效附件目录.
     *
     * @param fileNames      文件名集合
     * @param uploadTypeEnum 上传的业务类型
     * @param orderId        单号
     * @return
     */
    List<BdEnclosure> saveEffectiveFile(List<String> fileNames, UploadTypeEnum uploadTypeEnum, Integer orderId);

}
